package org.example.consumer.controller;


import org.apache.dubbo.config.annotation.Reference;
import org.example.provider.service.IUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @Reference
    private IUserService iUserService;

    @GetMapping
    public String hello() {
        return iUserService.hello("你好dubbo");
    }
}
